import React, { Component } from 'react'
import EventsBus from '../utils/EventsBus'
export class A extends Component {
    state={
        obj:{
            name:"秦磊",
            like:"跳舞"
        }
    }
    render() {
        let {obj} = this.state
        return (
            <div>
                A
                <button onClick={()=>{
                    EventsBus.emit("obj",obj)
                }}>点我传数据</button>
            </div>
        )
    }
}

export default A
